package sort;

/**
 *
 * @author BDSHADOW
 */
public class Sorter {
    private CoolSorts algorithm;

    public Sorter(CoolSorts algorithm) {
        this.algorithm = algorithm;
    }

    public void setAlgorithm(CoolSorts algorithm) {
        this.algorithm = algorithm;
    }

    public void sort(String input, String output) {
        algorithm.sort(input, output);
    }
}
